﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="Silverlight_Sample.Page"
	Width="Auto" Height="Auto" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="516" d:DesignHeight="412">
	<UserControl.Resources>
		
        <DataTemplate x:Key="DataTemplate1">
			<Grid  >
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="0.69*"/>
					<ColumnDefinition Width="0.31*"/>
				</Grid.ColumnDefinitions>
				<Grid.Background>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FF202020" Offset="0"/>
						<GradientStop Color="#FF5B5B5B" Offset="0.031"/>
						<GradientStop Color="#FF343434" Offset="1"/>
					</LinearGradientBrush>
				</Grid.Background>
				<TextBlock Text="{Binding Path=Name}" TextWrapping="Wrap" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="10,3,0,3" Foreground="#FFCCCCCC" FontSize="13"/>
				<TextBlock Grid.Column="1" Text="{Binding Path=Value}" TextWrapping="Wrap" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="10,3,0,3" Foreground="#FFCCCCCC" FontSize="13"/>
			</Grid>
		</DataTemplate>
	</UserControl.Resources>

	<Grid x:Name="rootVisual" Background="#FF878787">
		<Grid.RowDefinitions>
			<RowDefinition Height="0.175*"/>
			<RowDefinition Height="0.65*"/>
			<RowDefinition Height="0.175*"/>
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="0.25*"/>
			<ColumnDefinition Width="0.5*" MaxWidth="600"/>
			<ColumnDefinition Width="0.25*"/>
		</Grid.ColumnDefinitions>
		<Button Height="26" HorizontalAlignment="Left" VerticalAlignment="Top" Width="39" Grid.Column="1" Grid.Row="2" Content="Back" x:Name="btnBack"/>
		<Button Height="26" HorizontalAlignment="Right" VerticalAlignment="Top" Width="39" Content="Next" Grid.Column="1" Grid.Row="2" x:Name="btnNext"/>
		<ItemsControl ItemsSource="{Binding}" Grid.Column="1" Grid.Row="1" ItemTemplate="{StaticResource DataTemplate1}"/>
		<Slider Height="25" HorizontalAlignment="Right" Margin="0,0,0,4" VerticalAlignment="Bottom" Width="151" Grid.Column="1" x:Name="slider1" Value="3"/>
		<TextBlock Height="25" HorizontalAlignment="Left" Margin="8,0,0,4" VerticalAlignment="Bottom" Width="143" Grid.Column="1" Text="Page Size" TextWrapping="Wrap" FontSize="15"/>
		<TextBlock Height="26" Margin="116,0,137,0" VerticalAlignment="Top" Grid.Column="1" Grid.Row="2" TextWrapping="Wrap" FontSize="15" Text="{Binding Path=CurrentPage}"/>
	</Grid>
</UserControl>